﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace Components
{
    public partial class BLink : System.Windows.Forms.Button
    {
        private string link;

        public string Link
        {
            get { return link; }
            set { link = value; }
        }
    
        public BLink()
        {
            InitializeComponent();
        }

        public BLink(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
            BLink a = new BLink();
            a.Click += a_Click;
        }

        void a_Click(object sender, EventArgs e)
        {
            Process.Start(Link);
        }
    }
}
